package org.jeecg.modules.mes.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 薪资计算记录表
 * @Author: jeecg-boot
 * @Date: 2025-09-03
 * @Version: V1.0
 */
@Data
@TableName("mes_salary_calculation_record")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="mes_salary_calculation_record对象", description="薪资计算记录表")
public class MesSalaryCalculationRecord implements Serializable {
    private static final long serialVersionUID = 1L;

    /**主键ID*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;

    /**任务ID*/
    @Excel(name = "任务ID", width = 15)
    @ApiModelProperty(value = "任务ID")
    private String taskId;

    /**参与者ID*/
    @Excel(name = "参与者ID", width = 15)
    @ApiModelProperty(value = "参与者ID")
    private String participantId;

    /**员工ID*/
    @Excel(name = "员工ID", width = 15)
    @ApiModelProperty(value = "员工ID")
    private String employeeId;

    /**员工姓名*/
    @Excel(name = "员工姓名", width = 15)
    @ApiModelProperty(value = "员工姓名")
    private String employeeName;

    /**员工编号*/
    @Excel(name = "员工编号", width = 15)
    @ApiModelProperty(value = "员工编号")
    private String employeeNo;

    /**工种ID*/
    @Excel(name = "工种ID", width = 15)
    @ApiModelProperty(value = "工种ID")
    private String workTypeId;

    /**工种名称*/
    @Excel(name = "工种名称", width = 15)
    @ApiModelProperty(value = "工种名称")
    private String workTypeName;

    /**计算日期*/
    @Excel(name = "计算日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "计算日期")
    private Date calculationDate;

    /**完成数量*/
    @Excel(name = "完成数量", width = 15)
    @ApiModelProperty(value = "完成数量")
    private Integer completedQuantity;

    /**基础单价*/
    @Excel(name = "基础单价", width = 15)
    @ApiModelProperty(value = "基础单价")
    private BigDecimal baseRate;

    /**计件薪资*/
    @Excel(name = "计件薪资", width = 15)
    @ApiModelProperty(value = "计件薪资")
    private BigDecimal pieceSalary;

    /**协作类型(0-独立完成,1-协作完成,2-分段完成)*/
    @Excel(name = "协作类型", width = 15, dicCode = "collaboration_type")
    @Dict(dicCode = "collaboration_type")
    @ApiModelProperty(value = "协作类型(0-独立完成,1-协作完成,2-分段完成)")
    private Integer collaborationType;

    /**状态(0-无效,1-有效)*/
    @Excel(name = "状态", width = 15, dicCode = "valid_status")
    @Dict(dicCode = "valid_status")
    @ApiModelProperty(value = "状态(0-无效,1-有效)")
    private Integer status;

    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;

    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /**创建时间*/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;

    /**更新时间*/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;

    /**租户ID*/
    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;
}
